package com.winter.service;

import com.winter.model.User;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/8/16.
 */
public interface UserService {

    int addUser(User user);

    List<User> findAllUser(int pageNum, int pageSize);

    //校验用户提问时设定佣金是否大于拥有的资金
    public boolean checkMoneyById(Long id ,BigDecimal money);

    User selectByPrimaryKey(Long userId);

    int updateByPrimaryKey(User record);

    //用户撤销
    public void cancelTopic(Map<String,Object> paramMap);
}